﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace BEX.Core.Exchange.TRADEHILL.TradehillResponseJsonTypes
{
    public class Return
    {
        private JObject __jobject;
        public Return(JObject obj)
        {
            this.__jobject = obj;
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private Bid _bid;
        public Bid bid
        {
            get
            {
                if (_bid == null)
                {
                    _bid = JsonClassHelper.ReadStronglyTypedObject<Bid>(JsonClassHelper.GetJToken<JObject>(__jobject, "bid"));
                }
                return _bid;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private Ask _ask;
        public Ask ask
        {
            get
            {
                if (_ask == null)
                {
                    _ask = JsonClassHelper.ReadStronglyTypedObject<Ask>(JsonClassHelper.GetJToken<JObject>(__jobject, "ask"));
                }
                return _ask;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private Last _last;
        public Last last
        {
            get
            {
                if (_last == null)
                {
                    _last = JsonClassHelper.ReadStronglyTypedObject<Last>(JsonClassHelper.GetJToken<JObject>(__jobject, "last"));
                }
                return _last;
            }
        }
    }
}
